package com.wangshouyu.mp.base.event;

import com.wangshouyu.mp.message.RequestMessage;
import org.springframework.context.ApplicationEvent;

/**
 * @author 王守钰
 * @date 2020年12月22日 15:24
 * @description 微信事件
 */
public class WechatEvent extends ApplicationEvent {

    private RequestMessage requestMessage;

    private String appId;

    private String secret;

    private Object data;

    protected WechatEvent(Object source, RequestMessage requestMessage, String appId, String secret, Object data) {
        super(source);
        this.requestMessage = requestMessage;
        this.appId = appId;
        this.secret = secret;
        this.data = data;
    }

    public RequestMessage getRequestMessage() {
        return requestMessage;
    }

    public String getAppId() {
        return appId;
    }

    public String getSecret() {
        return secret;
    }

    public Object getData() {
        return data;
    }
}